﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using wrsm.wow;
using wrsm.wow.entity;
using wrsm.wow.exceptions;

namespace wrsm.client {

    /// <summary>
    /// Simple TreeView Control, used to browse file system,
    /// with added wrsm.wow integration, to make finding wow install
    /// directories..... easy!
    /// </summary>
    internal class WowInstallDirectoryBrowserTreeView : TreeView {

        #region [Local Attributes]

        /// <summary>
        /// The selected installation
        /// </summary>
        private WowInstallation _selectedInstallation;

        /// <summary>
        /// Selected Path
        /// </summary>
        private string _selectedPath;

        #endregion

        #region [Public Properties]

        /// <summary>
        /// Gets Selected Wow Installation wow installation directory
        /// </summary>
        public WowInstallation SelectedWowInstallation {
            get {
                return _selectedInstallation;
            }
        }

        /// <summary>
        /// Gets/Sets the selected wow path
        /// </summary>
        public string SelectedPath {
            get {
                return _selectedPath;
            }
            set {
                _selectedPath = value;
                //TODO: Update selected installation
            }
        }

        #endregion

        #region [Construction]

        /// <summary>
        /// Initialize WowInstallFileBrowserTreeview
        /// </summary>
        public WowInstallDirectoryBrowserTreeView() {



        }



        #endregion

    }
}
